package com.copc.common.constants;


/**
 * 平台枚举类
 */
public enum PlatformEnum {
    FUBON("fubon", "富邦保险平台"),
    SUNFL("sunfl", "向日葵销售平台"),
    PICUS("picus", "风控平台");

    String code;
    String message;

    PlatformEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static String valueOf(Integer value) {
        if (value == null) {
            return "";
        } else {
            for (PlatformEnum ms : PlatformEnum.values()) {
                if (ms.getCode().equals(value) ) {
                    return ms.getMessage();
                }
            }
            return "";
        }
    }
}
